package org.nanotek.cms.domain.lucene.config;

import org.nanotek.Base;
import org.nanotek.Kong;
import org.nanotek.musicbrainz.job.Work;

public class KongBaseTask <T extends Base<? extends Number> & Kong<? extends Base<? extends Number>>> implements Work<T>{

	T kongBase; 
	
	public KongBaseTask(T theKongBase) {
		this.kongBase = theKongBase;
	}

	@Override
	public void doWork(T args) {
		System.out.println(args.get());
		System.out.println(args.getId());
		System.out.println(kongBase.get());
		System.out.println(kongBase.getId());
	}
	
	public static void main (String [] args) 
	{ 
		IndexConfiguration con = new IndexConfiguration();
		con.setId(4L);
		KongBaseTask<IndexConfiguration> kon = new KongBaseTask<IndexConfiguration>(con);
		kon.doWork(con);
	}
}
